
using ORMAC.Attributes;
namespace Northwind
{
    /// <summary>
    /// This is a poco class decorated with ORMAC attributes
    /// </summary>
    //Use "Table" attribute to specify the database table name for this class
    [Table("Customers")]
    public class OCustomers
    {
        /// <summary>
        /// Use primary key attribute to specify primary key column name
        /// </summary>
        [PrimaryKey]
        [Field("CustomerID")]
        public string CustomerID
        {
            get;
            set;
        }
        /// <summary>
        /// Use "Field" attribute to specify the database column name for this property
        /// </summary>
        [Field("CompanyName")]
        public string CompanyName
        {
            get;
            set;
        }
        [Field("ContactName")]
        public string ContactName
        {
            get;
            set;
        }
        [Field("Phone")]
        public string Phone
        {
            get;
            set;
        }
    }
}
